﻿/*
	Date	: 10.10.11
	Author	: Jarryd
	Purpose	: Flights Data Manager.
	
 */
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GoldAir_DesktopApp
{
    public partial class frmFlight : Form
    {
        public frmFlight()
        {
            InitializeComponent();
        }

        private void flightBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.flightBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.flight_dbDataSet);

        }

        private void flightBindingNavigatorSaveItem_Click_1(object sender, EventArgs e)
        {
            this.Validate();
            this.flightBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.flight_dbDataSet);

        }

        private void frmFlight_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'flight_dbDataSet.flight' table. You can move, or remove it, as needed.
            this.flightTableAdapter.Fill(this.flight_dbDataSet.flight);

            departureDateTimePicker.CustomFormat = "yyyy-MM-dd hh:mm tt";
            effective_departureDateTimePicker.CustomFormat = "yyyy-MM-dd hh:mm tt";
            arrive_timeDateTimePicker.CustomFormat = "yyyy-MM-dd hh:mm tt"; 
            effective_arrive_timeDateTimePicker.CustomFormat = "yyyy-MM-dd hh:mm tt"; 

        }
    }
}
